package com.hnust.api;

import com.hnust.domain.PublishPaperInfo;
import com.hnust.domain.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;

@FeignClient(
        name = "ReleaseExamApi",
        url = "${feign.baseUrl}"
)
//        configuration = SubjectApis.MultipartSupportConfig.class)
public interface ReleaseExamApi {
    @PostMapping("/release/examInfo")
    Result<String> publishPaper(@RequestBody PublishPaperInfo publishPaperInfo);

//    @POST("/release/examInfo2")
//    Call<Result<String>> publishPaper(@Body PublishPaperInfo publishPaperInfo);

}

